export function $fmtPrice(price) {
	return price ? (price + 'MWK') : '免费'
}

export function $fmtLiveState(v) {
	return ['立即预约', '直播中', '直播回放'][v]
}

export function $fmtTime(v) {
	return this.$u.timeFrom(v, 'yyyy年mm月dd日 hh:MM:ss')
}

export function $fmtSubjectType(k) {
	let kv = {
		AUDIO: "音频",
		VIDEO: "视频",
		PPT_PLUS_AUDIO: "PPT",
		TEXT: "文章",
	}
	return kv[k]
}

export function $fmtOrderStatus(status) {
	switch (status) {
		case 0:
			return '未付款'
		case 1:
			return '已付款'
		case 2:
			return '已发货'
		case 3:
			return '已收货'
	}
}
